package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否主借人枚举
 * @author xueyuke
 * @since 2018-08-23
 */
@AllArgsConstructor
@Getter
public enum ProjectIsMasterBorrowerEnum {

    NO((byte)0,"否"),
    YES((byte)1,"是");

    private Byte value;
    private String name;


    public static ProjectIsMasterBorrowerEnum enumOf(byte value) {
        for (ProjectIsMasterBorrowerEnum projectIsMasterBorrowerEnum : values()) {
            if (projectIsMasterBorrowerEnum.value.equals(value)) {
                return projectIsMasterBorrowerEnum;
            }
        }
        return null;
    }
}
